<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="huoyun" uri="/huoyun"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>My JSP 'cargoDetail.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/theme/css/main.css">
	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/theme/css/index.css">
	<script type="text/javascript" src="${pageContext.request.contextPath}/theme/js/jquery-1.6.js"></script>
  	<style>
  	.perline2 li{
  		width:300px;
  	}
  	</style>
  </head>

  <body>
    <jsp:include page="/header.jsp"></jsp:include>
    <div class="home">
		<div class="w990 home-content clearfix">
			<div class="detail-left-content">
			<div class="cargo-detail">
				<div>
					<h1>	
		    			<huoyun:regionSelect provinceValue="${cargo.startProvince}" cityValue="${cargo.startCity}" type="view"/><span class="line_arrow"></span><huoyun:regionSelect provinceValue="${cargo.destinationProvince}" cityValue="${cargo.destinationCity}" type="view"/>
		    		</h1>
	    		</div>
				<div class="attributes-list">
					<div class="attr-list-hd clearfix">货源信息：</div>
					<ul>
						<li title="">货物类型:&nbsp;<s:property value="cargo.type" /></li>
						<li title="">货物名称:&nbsp;<s:property value="cargo.title"/></li>
						<li title="">包装:&nbsp;<s:if test="cargo.packageType == null || cargo.packageType == ''">无</s:if>
							<s:else>
								<huoyun:customSelect mode="cargoPackageType" value="${cargo.packageType }" type="view"/>
								(<s:property value="cargo.length"/>*<s:property value="cargo.width"/>*<s:property value="cargo.height"/>米)
							</s:else>
							
						</li>
						<li title="">货物数量:&nbsp;<s:property value="cargo.amount"/><huoyun:customSelect mode="measureType" value="${cargo.measure }" type="view"/></li>
						<li>总运费：&nbsp;<s:if test="cargo.freight == 0">无出价</s:if><s:else><s:property value="cargo.freight"/>元</s:else></li>
						<li>应标截止日期：&nbsp;<huoyun:dateFormat date='${cargo.bidEndTime }' dateFormat='yyyy-MM-dd HH:mm'/></li>
						<li>发货日期：&nbsp;<huoyun:dateFormat date='${cargo.loadStartTime }' dateFormat='yyyy-MM-dd HH:mm'/>-<huoyun:dateFormat date='${cargo.loadEndTime }' dateFormat='yyyy-MM-dd HH:mm'/></li>
						<li>补充说明：&nbsp;<s:property value="cargo.otherInfo"/></li>
						
						<!--<li title="" id="J_attrBrandName">品牌:&nbsp;Card fina/卡菲纳</li>-->
				   	</ul>
				   	<div class="attr-list-hd clearfix">配送信息：</div>
				   	
				   	<div class="perline2">
					<ul>
						<li title="&nbsp;1.3">起始地：&nbsp;<huoyun:regionSelect provinceValue="${cargo.startProvince}" cityValue="${cargo.startCity}" townValue="${cargo.startTown}" type="view"/></li>
						<li>起始地街道地址：&nbsp;<s:property value="cargo.startAddress"/></li>
						<li title="">目的地:&nbsp;<huoyun:regionSelect provinceValue="${cargo.destinationProvince}" cityValue="${cargo.destinationCity}" townValue="${cargo.destinationTown}" type="view"/></li>
						<li>目的地街道地址：&nbsp;<s:property value="cargo.destinationAddress"/></li>
						<li>装货开始时间:&nbsp;<huoyun:dateFormat date="${cargo.loadStartTime }" dateFormat="yyyy-MM-dd HH:mm" /></li>
						<li>装货结束时间:&nbsp;<huoyun:dateFormat date="${cargo.loadEndTime }" dateFormat="yyyy-MM-dd HH:mm" /><huoyun:dateFormat date="${cargo.loadEndTime }" dateFormat="yyyy-MM-dd HH:mm" /></li>
				   	</ul>
				   	</div>
				   	<div class="attr-list-hd clearfix">联系信息：</div>
				   	<div class="perline2">
					<ul>
						<li title="&nbsp;1.3">发货人姓名: &nbsp;<s:property value="cargo.sender"/></li>
						<li>发货人联系方式：&nbsp; <s:property value="cargo.senderPhone"/></li>
						<li>收货人姓名：&nbsp;<s:property value="cargo.receiver"/></li>
						<li>收货人联系方式：<s:property value="cargo.receiverPhone"/></li>
						<!--<li title="&nbsp;Card fina/卡菲纳" id="J_attrBrandName">品牌:&nbsp;Card fina/卡菲纳</li>-->
				   	</ul>
				   	</div>
				</div>
			</div>
			
			<div class="new-box" style="width: 700px;">
				<div class="hd" >
					<h2><a href="" >已经有<s:property value="contactCarList.size()"/>辆车报价</a></h2>
				</div>
				<div class="bd clearfix tab-content" id="new_goods_infos">
					<div class="tab-pannel">
						<ul class="round-box clearfix">
							<li>
								<span class="rounte">车牌号</span><span>公司信息</span><span>报价</span><span>时间</span><span>操作</span>
							</li>
							<s:iterator value="contactCarList" var="item">
							<li>
								<span class="rounte"><s:property value="#item.carNumber"/></span>
								
								报价 <span class="amount"><s:property value="#item.bidInfoPrice"/>元</span>
								 <span><huoyun:dateFormat date="${item.bidCreateTime}" dateFormat="yyyy-MM-dd HH:mm:ss"/></span>
								 <span><a href="#">查看</a></span>
							 </li>
							<!--<li><span class="rounte">陕A24234</span>报价 <span class="amount">100000元</span> <span>2012-12-11 12:34:43</span></li>-->
							</s:iterator>
						</ul>
					</div>
				</div>
			</div>
			
			</div>
			
			<div class="detail-right-content">
				<div class="cargo-operate"> 
		    		 <ul class="top-tab clearfix">
				        <li class="first"> <span class="title">竞标车辆数</span> <strong class="number"><s:property value="contactCarList.size()"/></strong> </li>
				        <li> <span class="title">浏览人次</span> <strong class="number"><s:property value="cargo.viewCount"/></strong> </li>
				        <li class="last"> 
				        	<span class="title">状态</span>
				        	<span class="status in"><em></em>
				        		<s:if test="cargo.status==0">待审核</s:if>
				        		<s:elseif test="cargo.status==1">竞标中</s:elseif>
				        		<s:elseif test="cargo.status==2">审核未通过</s:elseif>
				        		<s:elseif test="cargo.status==3">订单生成</s:elseif>
				        		<s:elseif test="cargo.status==4">完成交易</s:elseif>
				        		<s:else>异常</s:else>
				        	</span> 
				        </li>
				      </ul>
				      <div style="padding: 40px 70px;">
		    			<div class="button button-lorange">
							<input id="button_submit" type="submit" value="我来报价" class="button-text">
						</div><br/>
						<div class="button button-lorange">
							<input id="button_submit" type="submit" value="接受邀请" class="button-text">
						</div>
					</div>
				</div>
				
				<div class="new-box" style="width: 280px;margin-left: 10px;">
				<div class="hd" >
					<h2><a href="" >类似货源</a></h2>
				</div>
				<div class="bd clearfix tab-content" id="new_goods_infos">
					<div class="tab-pannel">
						<ul class="round-box clearfix">
							<s:iterator var="item" value="similarCargoPage.objectList">
							<li>
								<span class="rounte"><s:property value="#item.title"/></span>
								<span class="amount"><s:property value="#item.amount"/><huoyun:customSelect mode="measureType" value="${cargo.measure }" type="view" /></span> 
								<span><huoyun:dateFormat date="${item.addTime}" dateFormat="yyyy-MM-dd"/></span>
							</li>
							</s:iterator>
							<!--<li><span class="rounte">煤炭制品</span><span class="amount">100000元</span> <span>2012-12-11 12:34:43</span></li>-->
						</ul>
					</div>
				</div>
			</div>
				
			</div>
		</div>		
	</div>
	<div>
		<jsp:include page="/footer.jsp"></jsp:include>
	</div>
  </body>
</html>
